﻿using System.Configuration;

namespace com.hyrentals.webcommon.configuration
{
    public class ContentConfigParamCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new ContentConfigParamElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((ContentConfigParamElement)(element)).Name;
        }

        public ContentConfigParamElement this[int index]
        {
            get
            {
                return (ContentConfigParamElement)BaseGet(index);
            }
        }
    }
}
